<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2023-12-30
  Time: 13:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改密码</title>
    <%--<style>
        body {
            font-family: 'Arial', sans-serif;
            background-color: #f8f8f8;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        form {
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        h1 {
            text-align: center;
            color: #333;
        }

        p {
            margin-bottom: 10px;
        }

        input {
            width: 100%;
            padding: 8px;
            margin-bottom: 10px;
            box-sizing: border-box;
        }

        .button {
            background-color: #555;
            color: #fff;
            padding: 10px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }

        .button:hover {
            background-color: #777;
        }
    </style>--%>
    <%--<link rel="stylesheet" href="styles2.css">--%>
    <style>
        form {
            background-color: #ffffff;
            padding: 20px;
            margin: 10px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            width: fit-content; /* Adjusts width to fit contents */
        }
        body {
            font-family: 'Arial', sans-serif;
            background-color: #f8f8f8;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }
        .button {
            margin: 5px;
            padding: 5px 15px;
            text-decoration: none;
            border: none;
            border-radius: 5px;
            background-color: #007bff;
            color: white;
            cursor: pointer;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
        }
        th, td {
            text-align: left;
            padding: 12px;
            border: 1px solid #ddd;
        }
        tr:nth-child(even) {
            background-color: #f2f2f2;
        }

    </style>
</head>
<body>
<form action="/changeStudentPassword" method="post">
    <h1 id="loginMsg">修改密码</h1>
    <p>账号:<input id="id" name="id" type="text"></p>
    <p>旧的密码:<input id="oldpassword" name="oldpassword" type="password"></p>
    <p>新的密码:<input id="password" name="password" type="password"></p>
    <p>确认密码:<input id="password1" name="password1" type="password"></p>
    <input type="submit" class="button" value="确定">
    <input type="button" class="button" onclick="window.location.href='studentHome'" value="返回">
</form>
</body>
</html>
